# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-acme
pkgver=1.29.0
pkgrel=0
pkgdesc="ACME protocol implementation in Python"
url="https://github.com/certbot/certbot"
arch="noarch"
license="Apache-2.0"
depends="py3-setuptools py3-cryptography py3-josepy
	py3-openssl py3-pyrfc3339 py3-tz py3-requests
	py3-requests-toolbelt"
checkdepends="py3-pytest py3-pytest-runner"
source="https://pypi.io/packages/source/a/acme/acme-$pkgver.tar.gz"
builddir="$srcdir/${pkgname/py3-/}-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
2222a68897647dfa7ed5ed2124c23d8f8db4d9424a039fc1cf698af6ad16df59ca33d1b301606dacc9acf715f4994244a483c47cd7d21284221f17844e625bcc  acme-1.29.0.tar.gz
"
